package com.eco.fanliapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.xml.internal.bind.XmlAccessorFactory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2019-12-24
 */
@Data
@Getter
@Setter
@TableName("sy_user_integral_record")//@TableName中的值对应着表名
public class SyUserIntegralRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "table_id", type = IdType.AUTO)
    private Integer tableId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 积分增加减少金额
     */
    private Integer integralOpertAmount;

    /**
     * 积分操作前总额
     */
    private Integer integralOperBeforeAmount;

    /**
     * 积分操作后总额
     */
    private Integer integralOperAfterAmount;

    /**
     * 变动原因
     */
    private String operReason;

    /**
     * 兑换绑定订单
     */
    private Long operBindingOrder;

    /**
     * 兑换绑定商品id
     */
    private String operBindingGoodsId;

    /**
     * 创建时间
     */
    /**
     * 所属日期年月日
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 是否启用
     */
    private Integer enable;

    /**
     * 是否删除
     */
    private Integer deleted;

    @TableField(exist = false)
    private String weChatNickname;

    private String itemshorttitle;


}
